/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author Gatoper
 */
@Entity
public class Vacine implements Serializable {

    public Vacine(String name, Float dosage, Medicalrecord medicalrecord, Long id) {
        this.name = name;
        this.dosage = dosage;
        this.medicalrecord = medicalrecord;
        this.id = id;
    }
    
    @Column(name = "name")
    private String name;
    @Column(name = "dosage")
    private Float dosage;
    
    @ManyToOne
    private Medicalrecord medicalrecord;
    @Id
    private Long id;

    public Medicalrecord getMedicalrecord() {
        return medicalrecord;
    }

    public void setMedicalrecord(Medicalrecord medicalrecord) {
        this.medicalrecord = medicalrecord;
    }
    public Vacine() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getDosage() {
        return dosage;
    }

    public void setDosage(Float dosage) {
        this.dosage = dosage;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

   
    
}
